#pragma once
#ifndef _P2PSOCKET_H
#define _P2PSOCKET_H

#include <winsock2.h>  
#pragma comment(lib,"Ws2_32.lib")  

#include <list>

struct  Connecter
{
	SOCKET        socket;
	sockaddr_in   addr;
};
const int BUFFER_SIZE = 1024;

std::list<Connecter> WgConnecters; 
int WgClosed;  //1 - closed

int listenProcess(u_short port);
int closeProcess();
unsigned long _stdcall recvProcess(LPVOID pParam);
unsigned long _stdcall contProcess(LPVOID pParam);

#endif

